<?php

namespace app\exception;

use app\Code;

class AuthException extends \Exception
{
    public function __construct($message, $code = Code::TOKEN_EXCEPTION)
    {
        $this->message = $message;
        $this->code = $code;
    }
}